package com.wyz.note.basics.simple;

/**
 * @Description:
 * @author: wei yz
 * @Date: 2024/1/14 15:35
 */
public class FactoryTest {

    public static void main(String[] args) {
        Phone xiaomi = PhoneFactory.producePhone("xiaomi");
        xiaomi.produce();
        Phone huawei = PhoneFactory.producePhone("huawei");
        huawei.produce();
    }

}
